<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/css/form.css"/>

<div class="wd-form">
<?php echo CHtml::beginForm('','post',array('enctype'=>'multipart/form-data')); ?>
	<fieldset>
		<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>

		<?php echo CHtml::errorSummary(array($model)); ?>

		<div class="wd-input">
			<?php echo CHtml::activeLabelEx($model,'userName'); ?>
			<?php echo CHtml::activeTextField($model,'userName',array('size'=>20,'maxlength'=>20)); ?>
			<?php echo CHtml::error($model,'userName'); ?>
		</div>

		<div class="wd-input">
			<?php echo CHtml::activeLabelEx($model,'firstName'); ?>
			<?php echo CHtml::activeTextField($model,'firstName',array('size'=>20,'maxlength'=>20)); ?>
			<?php echo CHtml::error($model,'firstName'); ?>
		</div>
		
		<div class="wd-input">
			<?php echo CHtml::activeLabelEx($model,'lastName'); ?>
			<?php echo CHtml::activeTextField($model,'lastName',array('size'=>20,'maxlength'=>20)); ?>
			<?php echo CHtml::error($model,'lastName'); ?>
		</div>
		
		<div class="wd-input">
			<?php echo CHtml::activeLabelEx($model,'password'); ?>
			<?php echo CHtml::activePasswordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
			<?php echo CHtml::error($model,'password'); ?>
		</div>

		<div class="wd-input">
			<?php echo CHtml::activeLabelEx($model,'email'); ?>
			<?php echo CHtml::activeTextField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
			<?php echo CHtml::error($model,'email'); ?>
		</div>

		<div class="wd-input">
			<?php echo CHtml::activeLabelEx($model,'role'); ?>
			<?php echo CHtml::activeTextField($model,'role',User::itemAlias('role')); ?>
			<?php echo CHtml::error($model,'role'); ?>
		</div>
		<div class="wd-submit buttons">
			<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
		</div>
	</fieldset>
<?php echo CHtml::endForm(); ?>

</div><!-- form -->